function hasPraise(type,id)
{
	var tmpString;
	var allcookie = document.cookie.split('; ');
    for(var i=0;i<allcookie.length;i++){
		var arr = allcookie[i].split('=');
        var cookiename = arr[0];        
        if(cookiename == 'zcool_praise'){
			tmpString = arr[1];
        }
    }

	if (tmpString != null && tmpString.indexOf(type + "_" + id)>-1)
	{
		return true;
	}
	return false;
}